﻿//using GalaSoft.MvvmLight;
//using GalaSoft.MvvmLight.Command;
using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace ProjectTest
{
    public partial class ProjectTestViewModel : BindableBase
    {

        CommonExternalEventHandler executeEventHandler = null;
    
        public ICommand ActionCMD { get; set; }
        public ICommand Func01CMD { get; set; }
        public ICommand Func02CMD { get; set; }


        public ProjectTestViewModel(CommonExternalEventHandler _executeEventHandler)
        {
            executeEventHandler = _executeEventHandler;
              
            //定义命令
            this.ActionCMD = new DelegateCommand(ActionEXE);                   //无参数的
            this.Func01CMD = new DelegateCommand<object>(Func01EXE);           //带有1个参数的
            this.Func02CMD = new DelegateCommand<IList<object>>(Func02EXE);    //带有2个参数的
             
        }


    }
}
